package ord2.indexer;

/**
 * This interface tell that a index operation will not block when calling <code>
 * processDocument()</code>. It will run in background util it finishes.
 * @see Indexer#processDocuments() 
 * @see NonBlockingIndexerListener
 *
 * @author José Ivan
 * @author Edviges
 *
 */
public interface NonBlockingIndexer {

    /**
     * Adds a listener that will listens a index operation finishes.
     * @param list 
     */
    void addIndexerListener(NonBlockingIndexerListener list);
    
    void removeIndexerListener(NonBlockingIndexerListener list);
}
